//	--------------------------------------------------------------------
//	Copyright(C) 2006,2007 Zhao Yukun. All rights reserved.
//	This file is a part of the Xeres system.
//	Xeres 2007
//	Contact : xeres.engine@gmail.com
//	$(reservedInfo)
//	$(reservedDeclaration)
//	--------------------------------------------------------------------
///	@file	<CConstantIndex9.cpp>
///	@path	~/src/graphics/dx9/
///	@date	2009/01/11
///	@desc	.

#include "config/config.h"

#include "graphics/dx9/CConstantIndex9.h"

namespace xeres {

	IMPL_IOBJECT_CLASS( CConstantIndex9 );
	
	// CConstantIndex9
	CConstantIndex9::CConstantIndex9( IDirect3DIndexBuffer9 * buffer , size_t count )
		: CBaseIndex9( buffer , count )
	{
	}
	// ~CConstantIndex9
	CConstantIndex9::~CConstantIndex9( void )
	{
	}
	// Map
	bool CConstantIndex9::Map( bool discard , ResourceMap& data )
	{
		TRACE_ERROR( _S("CConstantIndex9::Map: Constant index is not lockable for write.") );
		return false;
	}
	// ReadBack
	bool CConstantIndex9::ReadBack( ResourceMap& data , bool readonly )
	{
		TRACE_ERROR( _S("CConstantIndex9::ReadBack: Constant index is not lockable for read.") );
		return false;
	}
	// Unmap
	bool CConstantIndex9::Unmap( void )
	{
		TRACE_ERROR( _S("CConstantIndex9::Unmap: Constant index cannot be locked & unlocked.") );
		return false;
	}

} // namespace xeres
